package cn.yh.action;

import cn.yh.biz.AdminBiz;
import cn.yh.model.Admin;

public class GetAdminById extends BaseAction {
	private int aid;
	public String execute(){
		AdminBiz ab = new AdminBiz();
		Admin admin = ab.searchById(aid);
		System.out.println(admin.getAname());
		getRequest().setAttribute("admin", admin);
		return "success";
	}
	public int getAid() {
		return aid;
	}
	public void setAid(int aid) {
		this.aid = aid;
	}
	
	
	
}
